package Factory;


public class FactoryTest 
{

	 public static void main(String[] args) 
	 {  
	        SendFactory factory = new SendFactory(); 
	        ////普通工厂模式
	        //Sender sender = factory.produce("mail"); 
	        //sender.Send();  
	        
	        ////多个工厂模式
	        //Sender sender = factory.produceMail();
	        //sender.Send();  
	        
	        ////静态工厂模式
	        Sender sender = SendFactory.produceSms_static();  
	        sender.Send(); 
	    }  
}
